<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title> 
</head>
<body>

<script type="text/javascript">
	onload = function(){
		//alert(document.getElementById('l').outerHTML);
		document.getElementById('l').outerHTML = '<div id="zhenlihai"></div>'
	}

</script>
<div id='l'>
	<div id='s'></div>
</div>
</body>
</html>